package hn.cch.spring.dao;

import hn.cch.quartz.job.QuartzJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

import java.util.Map;


@Component
public class SpringDao {

    private static final Logger logger = LoggerFactory.getLogger(SpringDao.class);

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public Map<String, Object> selectMap(){
        Map<String, Object> map = jdbcTemplate.queryForMap("select * from tbl_login");
        return map;
    }


}
